package Vista;
import Controlador.*;

import java.awt.Dimension;
import java.awt.Panel;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

import Modelo.AdaptadorMouse;

public class VentanaPrincipal extends JFrame implements MouseMotionListener{

	private JButton botonIniciarJuego = new JButton("Iniciar Juego");
	private JButton botonSalir = new JButton("Salir");
	private Controlador controlador;
	
	public VentanaPrincipal (Controlador controlador){
        super("Los Pooglins");
		this.controlador=controlador;
		setPreferredSize(new Dimension(300, 300));
		setSize(350,300);
		setLocationRelativeTo(null);
		Panel panelBotones = new Panel(); 
		panelBotones.add(botonIniciarJuego);
		panelBotones.add(botonSalir);
		botonIniciarJuego.setPreferredSize(new Dimension(300, 100));
		botonSalir.setPreferredSize(new Dimension(300, 100));

		botonIniciarJuego.addActionListener(controlador.getListenerBotonIniciarJuego());
		botonSalir.addActionListener(controlador.getListenerBotonSalir());
	
		this.add(panelBotones);
		
		addMouseListener(new AdaptadorMouse(this));
		addMouseMotionListener(this);

}

	@Override
	public void mouseDragged(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseMoved(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}	
}
